/**
 * @param {string} s
 * @param {number} k
 * @return {string}
 */
 var longestSubsequenceRepeatedK = function(s, k) {
  const check = (str) => {
    const map = new Map()
    for(const ch of str){
      map.set(ch, map.has(ch) ? map.get(ch) + 1 : 1)
    }
  }
};